<!DOCTYPE HTML>
<HTML xmlns:th="http://www.thymeleaf.org">

<nav th:fragment="top">

        <div class="header">
            <div class="container">
                <div class="logo">
                    <h1><a th:href="@{/}">酒店订购</a></h1>
                </div>
                <nav class="navbar navbar-default" role="navigation">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                    </div>
                    <!--/.navbar-header-->
                    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                        <ul class="nav navbar-nav">
                            <li class="active"><a th:href="@{/}">主页</a></li>
                            <li><a th:href="@{/map}">地图搜索</a></li>
<!--                            <li><a th:href="@{/offers.html}">相关服务</a></li>-->
                            <li th:if="${session.user!=null}"><a th:href="@{/logout}">注销</a></li>
                            <li th:if="${session.user==null}"><a th:href="@{/signup}">登录</a></li>
                            <li><a th:href="@{/signup}">注册</a></li>
                            <li th:if="${session.user!=null}"><a th:href="@{/contact}">订单中心</a></li>
                        </ul>
                    </div>
                    <!--/.navbar-collapse-->
                </nav>

                <div class="clearfix"> </div>

                <!-- search-scripts -->
                <script th:src="@{/js/classie.js}"></script>
                <script th:src="@{/js/uisearch.js}"></script>
                <script>
                    new UISearch( document.getElementById( 'sb-search' ) );
                </script>
                <!-- //search-scripts -->

            </div>
        </div>
    <!-- banner -->

</nav>